//
//  DeliverModel.m
//  ProjectforHDX
//
//  Created by motom on 16/8/11.
//  Copyright © 2016年 H.DX. All rights reserved.
//

#import "DeliverModel.h"

@implementation DeliverModel


-(NSArray *)tracking
{
    if (!_tracking) {
        _tracking = [[NSArray alloc]init];
    }
    return _tracking;
}

-(void)setTrackingWithDic:(NSDictionary *)trackingDics
{
    NSMutableArray *mu = [NSMutableArray array];
        for (NSDictionary *trackDic in trackingDics) {
            DeliverTrackingModel *track = [[DeliverTrackingModel alloc]init];
            [track setValuesForKeysWithDictionary:trackDic];
            [mu addObject:track];
        }
    self.tracking = mu;

}
-(NSArray *)DeliverModelWithArray:(NSArray *)array
{
    NSMutableArray *mu = [NSMutableArray array];
    for (NSDictionary *trackDic in array) {
        DeliverTrackingModel *track = [[DeliverTrackingModel alloc]init];
        [track setValuesForKeysWithDictionary:trackDic];
        [mu addObject:track];
    }
    return mu;
}

@end
